<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>ExtMapTypeControl v1.2 Reference</title>
    <link rel="stylesheet" type="text/css" href="http://code.google.com/css/codesite.css"></link>
    <link rel="stylesheet" type="text/css" href="../../util/docs/template/local_extensions.css"></link>
  </head>
  <body>
    <h1>ExtMapTypeControl</h1>
    <p>
This library lets you add a control to the map which mimics
    <code>GMapTypeControl</code> and allows for the addition of a traffic
    button/traffic key.</p>
    
      <h2><a name="ExtMapTypeControl"></a>class ExtMapTypeControl</h2>
      <p>This class lets you add a control to the map which looks like the
    typical <code>GMapTypeControl</code> from the obfuscated API.  By specifying
    additional options however, you can also add a Traffic button to the
    control and a drop-down legend for that button.  This class extends <code>GControl</code>.</p>
      
        <h3>Constructor</h3>
        <table summary="class ExtMapTypeControl - Constructor" width="90%">
          
          <tbody>
            <tr>
              <th>Constructor</th>
              
              <th>Description</th>
            </tr>
            
              <tr class="odd">
                <td><code>ExtMapTypeControl(<span class="type" title="type:  ExtMapTypeControlOptions">opt_opts?</span>)</code></td>
                
                <td>Creates a ExtMapTypeControl with the specified option hash to decide what
    elements to put in the control.</td>
              </tr>
            
          </tbody>
        </table>
      
    
      <h2><a name="ExtMapTypeControlOptions"></a>class ExtMapTypeControlOptions</h2>
      <p>Instances of this class are used in the <code>opt_opts</code> argument to
    the constructor of the <code><a href="reference.html#ExtMapTypeControl">ExtMapTypeControl</a></code> class.  There is no constructor for this class.  Instead, this class is instantiated as a javascript object literal.</p>
      
        <h3>Properties</h3>
        <table summary="class ExtMapTypeControlOptions - Properties" width="90%">
          
          <tbody>
            <tr>
              <th>Properties</th>
              
                
                  <th>Type</th>
                
              
              <th>Description</th>
            </tr>
            
              <tr class="odd">
                <td><code>showTraffic</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>If set to true, Traffic button will
    appear to left of other buttons.  The default value is <code>false</code>.</td>
              </tr>
            
              <tr class="even">
                <td><code>showTrafficKey</code></td>
                
                  
                    <td><code>Boolean</code></td>
                  
                
                <td>If this option and showTraffic are
    set to true, a "?" button will appear next to Traffic button, and show a
    drop-down legend when clicked.  The default value is <code>false</code>.</td>
              </tr>
            
          </tbody>
        </table>
      
    
    <!-- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
    <script type="text/javascript">
      _uacct = "UA-964209-4";
      urchinTracker();
    </script> -->
  </body>
</html>
